<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑教材</title>
    <link rel="stylesheet" href="../layui/css/layui.css" type="text/css" />
    <link rel="stylesheet" href="../css/examstyle.css" type="text/css">
</head>
<body>
<form class="layui-form" action="">
	<div class="tankuang">
		<div class="tanchuang_jc">
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>所属类别</label>
			    <div class="layui-input-inline w280">
			      	<select>
				        <option value="1">1</option>
				        <option value="2">2</option>
			      	</select>
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>教材名称</label>
			    <div class="layui-input-inline w280">
			        <input type="text" class="layui-input radius5" placeholder="关于新形势下党内政治生活的若干准则">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>编制单位</label>
			    <div class="layui-input-inline w280">
			        <input type="text" class="layui-input radius5">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>编著作者</label>
			    <div class="layui-input-inline w280">
			        <input type="password" class="layui-input radius5">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>编制日期</label>
			    <div class="layui-input-inline w280">
			        <input type="password" class="layui-input radius5">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>累计学分</label>
			    <div class="layui-input-inline w280">
			        <input type="password" class="layui-input radius5">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>扣除学分</label>
			    <div class="layui-input-inline w280">
			        <input type="password" class="layui-input radius5">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"><span class="xing">*</span>排列序号</label>
			    <div class="layui-input-inline w280">
			        <input type="password" class="layui-input radius5">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">上传封面</label>
			    <div class="layui-input-inline w360 photoup">
			    	<div class="photo_box"><img src="../img/photoup.png" /></div>
					<button type="button" class="layui-input radius5 bg_orange w100 white" id="files_upload">上传图片</button>
					<b>建议尺寸大小为：90*110</b>
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label"></label>
			    <div class="layui-input-block">
			        <input type="submit" class="layui-btn radius5 bg_blue w120" value="提交" />
			        <input type="submit" class="layui-btn radius5 bg_c8c8c8 w120" value="关闭" />
			    </div>
			</div>
		</div>
	</div>
</form>

<!--<script  src="../js/jquery.min.js"></script>-->
<script src="../layui/layui.all.js"></script>
	<script>
		layui.use('form', function(){
	        var form = layui.form; 
	        form.render();
	    });
	    
	    layui.use('upload', function(){
		  var upload = layui.upload;
		   
		  //执行实例
		  var uploadInst = upload.render({
		    elem: '#files_upload' //绑定元素
		    ,url: '/upload/' //上传接口
		    ,done: function(res){
		      //上传完毕回调
		    }
		    ,error: function(){
		      //请求异常回调
		    }
		  });
		});


	</script>
</body>
